#include "vector_list.hpp"

using namespace std;

int main(int argc,char* argv[],char* env[])
{

    
    YX::List<int> l;
    l.push_back(1);
    l.push_back(2);
    l.push_back(3);
    l.push_back(4);
    l.push_back(5);

    YX::List<int>::iterator it=l.begin();

    while(it!=l.end())
    {
        cout<<*it<<" ";
        ++it;
    }
    cout<<endl;

    YX::List<int>::reverse_iterator rit=l.rbegin();
    while(rit!=l.rend())
    {
        cout<<*rit<<" ";
        ++rit;
    }
    cout<<endl;

    //YX::vector<int> v;

    //v.push_back(1);
    //v.push_back(2);
    //v.push_back(3);
    //v.push_back(4);
    //v.push_back(5);

    //YX::vector<int>::iterator it=v.begin();

    //while(it!=v.end())
    //{
    //    cout<<*it<<" ";
    //    ++it;
    //}
    //cout<<endl;

    //YX::vector<int>::reverse_iterator rit=v.rbegin();

    //while(rit!=v.rend())
    //{

    //    cout<<*rit<<" ";
    //    ++rit;
    //}
    //cout<<endl;

    return 0;
}
